from .models import GoodCategory,Good,GoodImg,Carousel
from rest_framework import serializers

# 商品种类的序列化器
class GoodCategorySer(serializers.ModelSerializer):
    class Meta:
        model = GoodCategory
        fields = '__all__'

# 商品信息的序列化器
class GoodSer(serializers.ModelSerializer):
    class Meta:
        model = Good
        fields = "__all__"

# 商品图片的序列化器
class GoodImgSer(serializers.ModelSerializer):
    class Meta:
        model = GoodImg
        fields = '__all__'

# 轮播图的序列化器
class CarouselSer(serializers.ModelSerializer):
    class Meta:
        model = Carousel
        fields = "__all__"





